using System;
using System.Collections.Generic;
using System.Xml;
using System.Collections.ObjectModel;

namespace planning
{
	public class TP : Enseignement
	{
		// ----- ATTRIBUTS -----


		// ----- CONSTRUCTEURS -----
		public TP()
		{
			// Start of user code for default constructor
			// End of user code for default constructor
		}

		// ----- ACCESSEURS -----



		static Dictionary<string, TP> references = new Dictionary<string, TP>();

		public static new TP fromXml(XmlNode node)
		{
			if(node.SelectSingleNode("@ref") != null)
				return references[node.SelectSingleNode("@ref").Value];

			TP tp = new TP();

			if(node.SelectSingleNode("@id") != null) {
				references.Add(node.SelectSingleNode("@id").Value, tp);
			}

			

			return tp;

		}

	}

}
